<?php

Auth::routes();

Route::get('/', 'HomeController@index');
Route::get('/home', 'HomeController@index');
Route::get('/m/posting/{id}', 'HomeController@mobile');

// query
Route::get('/api/GetCurPositions', 'ApiController@GetCurPositions');
Route::get('/api/GetExpiredPositions', 'ApiController@GetExpiredPositions');
Route::get('/api/GetTemplates', 'ApiController@GetTemplates');
Route::get('/api/GetPositionsById/{id}', 'ApiController@GetPositionsById');
// update
Route::get('/api/UpdatePosition', 'ApiController@UpdatePosition');
// add
Route::get('/api/CreatePosition', 'ApiController@CreatePosition');
// delete
Route::get('/api/DeletePosition', 'ApiController@DeletePosition');

